package com.xiansiblog.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
*@Description: 博客实体类
*@Author: 弦思
*@Date 2021/2/1
*/
@Data
public class Blog {
    private Long id;
    private String title;
    private String content;
    private String firstPicture;
    private String flag;
    private Integer views;
    private Integer commentCount;
    private boolean appreciation;//是否赞赏
    private boolean shareStatement;//是否转载
    private boolean commentabled;//是否评论
    private boolean published;  //是否发布
    private boolean recommend; //是否推荐
    private Date createTime; //创建时间
    private Date updateTime; //更新时间

    private Long typeId;
    private Long userId;
    private String description;
    private Type type;
    private User user;
    private List<Comment> comments = new ArrayList<>();

}
